package com.xiaochong.tir.order.mqrevOrderBook;

import com.xiaochong.tir.mq.rabbit.HuobiproMqQueue;
import com.xiaochong.tir.order.component.OrderDataSaveHbaseCommon;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by admin on 2018/6/16.
 */
@Component
public class HuobiproRevOrderBook {
    @Resource
    private OrderDataSaveHbaseCommon mqDataSaveHbaseCommon;
    @RabbitListener(queues = HuobiproMqQueue.QUEUE_DEPTH_HUOBIPRO)
    @RabbitHandler
    public void processHuobipro(byte[] body) {
        mqDataSaveHbaseCommon.MqDataSaveOrderBook(body);
    }
}
